package top.infopub.mgr.om.dao;

import org.apache.ibatis.annotations.Param;
import top.infopub.generic.GenericDao;
import top.infopub.mgr.om.domain.PaymentApplyDomain;
import top.infopub.mgr.om.vo.PaymentApplyVo;
import top.infopub.model.om.PaymentApply;

import com.github.pagehelper.Page;

/** 付款申请(OM_PAYMENT_APPLY) **/
public interface PaymentApplyDao extends GenericDao<PaymentApply, String> {

	/** codegen **/
	
    void insertById(PaymentApply paymentApply);
    
    /**
     * 根据id查询运营付款详情
     * @param id 主键id
     * @return 
     * @see
     */
    PaymentApplyDomain selectById(String id);
    
    /**
     * 根据条件查询-我审批的分页数据
     * @param PaymentApplyVo
     * @return 
     * @see
     */
    Page<PaymentApplyDomain> selectMyCheckByDomainWhere(PaymentApplyVo paymentApplyVo);
    
    /**
     * 根据条件查询分页数据
     * @param PaymentApplyVo
     * @return 
     * @see
     */
    Page<PaymentApplyDomain> selectByDomainWhere(PaymentApplyVo paymentApplyVo);

    /**
     * 根据pro_code查询付款申请sguid
     * @param proCode
     * @return
     */
    String querySguidByProCode(@Param("proCode") String proCode, @Param("types") String types);

    /**
     * 根据业务ID查询保证金付款申请
     * @param bizSguid
     * @return
     */
    PaymentApply queryByBizSguid(@Param("bizSguid") String bizSguid);
}